﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CSF.BusinessCore.BLL;
using CSF.Products.Data;
using CSF.MultiLang.BLL;
using Ict.DataAccess;

namespace CSF.Products.BLL
{
    public class ProductTypeBLL : MlTransactionConfigLogic<ProductType>
    {
        /// <summary>
        /// 获取属于某个网店的产品类型
        /// </summary>
        /// <param name="appId"></param>
        /// <returns></returns>
        public List<ProductType> GetByAppId(int appId)
        {
            var q = from p in DataContext.Select<ProductType>()
                    where p.ApplicationId == appId
                    select p;
            return q.ToList();
        }
    }
}
